class CreateLaivs < ActiveRecord::Migration
  def self.up
    create_table :laivs do |t|
			t.column :title, :string
			t.column :subtitle, :string
			t.column :description, :text
			t.column :starts_on, :date
			t.column :ends_on, :date
			t.column :public, :boolean
			t.column :registration_starts_on, :datetime
			t.column :registration_ends_on, :datetime
			t.column :organizer, :string
			t.column :administrator_id, :integer
    end
  end

  def self.down
    drop_table :laivs
  end
end
